<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag-12.tld"%>
<%@page import="com.opensymphony.module.sitemesh.Page"%>
<html>
<head>
<meta name="tab" content="students" />
<meta name="leftbar-link" content="email-list"/>
<meta name="decorator" content="DefaultLayout"/>
<link href="<s:url value="/webwork/jscalendar/calendar-blue.css" />" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<script>

</script>
<span id="pageHeading">Student Details<hr/></span>

<s:form name="studentForm" id="studentForm" action="/addStudent.action" method="post">
<table>
<tr>
	<td><b>Student Id</b></td>
	<td>${student.id}</td>
</tr>

<tr>
	<td>Name</td>
	<td>${student.firstName} &nbsp; ${student.lastName}</td>
</tr>

<tr>
	<td>Contact Number1</td>
	<td>${student.contactNum1}</td>
</tr>

<tr>
	<td>Date of birth</td>
	<td>${student.dobStr}</td>
</tr>
<tr>
	<td colspan="4" align="center">
	<a class="orange" href="<%=request.getContextPath()%>/editStudent.action?studentId=${student.id}">Edit</a>	
	<a class="orange" href="<%=request.getContextPath()%>/showStudentPaymentForm.action?studentId=${student.id}">Add Payment</a>
	<a class="orange" href="<%=request.getContextPath()%>/showDetails.action?studentId=${student.id}">Show Details</a>
	<a class="orange" href="<%=request.getContextPath()%>/showNextLevelForm.action?studentId=${student.id}">Change Level >></a>
</td>
</tr>

</table>
Payment Details
<table>
  	<display:table name="studentPaymentList" id="studentPayment" class="dataTable" requestURI="/searchStudent.action"
      cellspacing="0"  sort="list"  pagesize="10" export="true" 
      decorator="org.displaytag.decorator.TotalTableDecorator" >
      <display:column title="Amount" property="amount" sortable="true"/>
      <display:column title="payment Date" property="paymentDateStr" sortable="true"/>
      <display:column title="Payment Mode" property="paymentMode" sortable="true"/>
	</display:table>
</table>
Level Summary
<table>
  	<display:table name="studentLevelList" id="studentLevel" class="dataTable" requestURI="/searchStudent.action"
      cellspacing="0"  sort="list"  pagesize="10" export="true" 
      decorator="org.displaytag.decorator.TotalTableDecorator" >
      <display:column title="Level" property="levelId" sortable="true"/>
      <display:column title="Book Charges" property="bookCharges" sortable="true"/>
      <display:column title="Fees" property="fees" sortable="true"/>
      <display:column title="Discount" property="discount" sortable="true"/>
	</display:table>
</table>

</s:form>
</body>
</html>
